<template>
    <div>
        <div>

            <div class="top-margin">
                <img @click="goback" src="https://cdn7.axureshop.com/demo/1564251/images/%E7%BB%84%E4%BB%B6_%E8%A7%84%E8%8C%83/u1032.png" alt="">
                <div class="imgfloat">
                    <img src="	https://cdn7.axureshop.com/demo/1564251/images/%E8%89%BA%E4%BA%BA%E4%B8%BB%E9%A1%B5/u2563.png" alt="" class="spacing1">
                    <img src="https://cdn7.axureshop.com/demo/1564251/images/%E7%BB%84%E4%BB%B6_%E8%A7%84%E8%8C%83/u1031.png" alt="" class="spacing1">
                </div>
            </div>

            <div class="center">
                <img src="	https://cdn7.axureshop.com/demo/1564251/images/%E9%A6%96%E9%A1%B5/u2176.png" alt="" width="100" height="100">
                <h3>Warmer</h3>
                <p>暂无简介</p>
                <p>
                    <span class="spacing2">关注 26</span>
                    <span class="spacing2">粉丝 106</span>
                    <span>获赞 1070</span>
                </p>   
                <van-button  type="primary" class="concern">+ 关注</van-button>
            </div>
        </div>    
        <van-tabs v-model="active">
            <van-tab :tab="tab" v-for="item in tab" :key="item">
                <template #title> {{ item }} </template>
                    {{ item }}
            </van-tab>
        </van-tabs>        
            
        

    </div>
</template>

<script>
export default {
    data() {
        return {
            tab:[ '动态(5)','收藏(5)']
        }
    },
    methods: {
        goback() {
            this.$router.go(-1)
        }
    }
}
</script>

<style lang="scss" scoped>
body,h3,p {
    margin: 0;
    padding: 0;
}
.top-margin {
    margin-top: 7%;
    margin-left: 5%;
    .imgfloat {
        width: 80px;
        float: right;
        .spacing1 {
            margin-right: 20px;
        }
    }
}
.center {
    width: 375px;
    text-align: center;
    margin-top: 4%;
    img {
        display: block;
        margin: 0 auto;
    }
    h3 {
        font-size: 24px;
        line-height: 20px;
        margin-top: 5%;
    }
    h3+p {
        color: #999;
        font-size: 13px;
        margin: 0 auto;
        margin-top: 3%;
    }
    h3+p+p {
        margin: 3% 8% 0 8%;
        font-size: 14px;

    }
    .spacing2 {
        margin-right: 15%;
    }
    
    .concern {
        width: 80px;
        height: 32px;
        border: none;
        background-color: rgba(255, 98, 98, 1);
        margin-top: 5%;
        margin-bottom: 7%;
        border-radius: 4px;
    } 
}

</style>